package com.king.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * Created by king on 2018/03/07.
 */
@FeignClient(value="service-hi",fallback = FeignHystrix.class)
public interface FeignService {

    @RequestMapping(value="/info",method = RequestMethod.GET)
    String feignHi(@RequestParam("name") String name);

}
